package com.dmlll.service.impl;

import com.dmlll.dao.EmploymentMessageMapper;
import com.dmlll.pojo.EmploymentMessage;
import com.dmlll.service.EmploymentInformationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class EmploymentInformationServiceImpl implements EmploymentInformationService {
    @Autowired
    private EmploymentMessageMapper employmentMessageMapper;
    @Override
    public Integer addEmploymentInformation(EmploymentMessage employmentMessage) {
        return employmentMessageMapper.insertSelective(employmentMessage);
    }

    @Override
    public EmploymentMessage findEmploymentInformationById(Integer id) {
        return employmentMessageMapper.selectByPrimaryKey(id);
    }

    @Override
    public void updateEmployment(EmploymentMessage employmentMessage) {
        employmentMessageMapper.updateByPrimaryKeySelective(employmentMessage);
    }
}
